﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Scheduling.Models.Interfaces;

namespace Scheduling.Models.Repos.InMemory
{
    public class InMemoryDepartmentLoader : IDepartmentLoader
    {
        public List<Department> GetDepartments()
        {
            Department department= new Department();
            department.ID=1;
            department.Name="Department of Science";
            List<Department> result = new List<Department>();
            result.Add(department);
            return result;
        }

        public Department GetDepartment(int ID)
        {
            return GetDepartments().First();
        }
    }
}